package ldh.im.business.dao;


import ldh.im.business.pojo.Tenant;
import ldh.im.business.pojo.where.TenantWhere;

import java.util.List;

/**
* @author: ldh
* @date: 2021-06-06 10:17:43
*/
public interface TenantDao {

	Integer insert(Tenant tenant);

	Integer insertSelective(Tenant tenant);

	Integer updateById(Tenant tenant);
	
	Integer updateNotNullById(Tenant tenant);
	
	Integer deleteById(Long id);

	Tenant getById(Long id);

	Tenant getByCode(String code);

	List<Tenant> findByTenantWhere(TenantWhere tenantWhere);
	
	Long findTotalByTenantWhere(TenantWhere tenantWhere);
}
